package theOrbalEra.common.util;

import java.util.HashMap;

public class QuartzRepices {
	public static QuartzRepices quartzRepices=new QuartzRepices();
	private HashMap<Integer, QuartzNeeded> loopList = new HashMap<Integer, QuartzNeeded>();
	
	class QuartzNeeded{
		public int fire,water,earth,wind,time,space,unreal;

		public QuartzNeeded(int fire, int water, int earth, int wind, int time,
				int space, int unreal) {
			this.fire = fire;
			this.water = water;
			this.earth = earth;
			this.wind = wind;
			this.time = time;
			this.space = space;
			this.unreal = unreal;
		}
		
	}
	private QuartzRepices(){
		this.addQuartzRepice(new QuartzNeeded(20,0,0,0,0,0,0), Quartz.Attack1);
		this.addQuartzRepice(new QuartzNeeded(200,0,0,0,0,0,0), Quartz.Attack2);
		this.addQuartzRepice(new QuartzNeeded(800,0,0,0,0,0,0), Quartz.Attack3);
		this.addQuartzRepice(new QuartzNeeded(50,0,0,0,0,0,0), Quartz.BladeOfSealSkills);
		this.addQuartzRepice(new QuartzNeeded(50,0,0,0,0,0,0), Quartz.BladeOfChaos);
		this.addQuartzRepice(new QuartzNeeded(50,0,0,0,0,0,0), Quartz.BladeOfMaxKills);
		
		this.addQuartzRepice(new QuartzNeeded(0,20,0,0,0,0,0), Quartz.HP1);
		this.addQuartzRepice(new QuartzNeeded(0,200,0,0,0,0,0), Quartz.HP2);
		this.addQuartzRepice(new QuartzNeeded(0,800,0,0,0,0,0), Quartz.HP3);
		this.addQuartzRepice(new QuartzNeeded(0,30,0,0,0,0,0), Quartz.Mind1);
		this.addQuartzRepice(new QuartzNeeded(0,300,0,0,0,0,0), Quartz.Mind2);
		this.addQuartzRepice(new QuartzNeeded(0,900,0,0,0,0,0), Quartz.Mind3);
		this.addQuartzRepice(new QuartzNeeded(0,200,0,0,50,0,0), Quartz.Heal);
		this.addQuartzRepice(new QuartzNeeded(0,50,0,0,0,0,0), Quartz.BladeOfFreeze);
		
		this.addQuartzRepice(new QuartzNeeded(0,0,20,0,0,0,0), Quartz.Defense1);
		this.addQuartzRepice(new QuartzNeeded(0,0,200,0,0,0,0), Quartz.Defense2);
		this.addQuartzRepice(new QuartzNeeded(0,0,800,0,0,0,0), Quartz.Defense3);
		this.addQuartzRepice(new QuartzNeeded(0,0,50,0,0,0,0), Quartz.BladeOfPoison);
		this.addQuartzRepice(new QuartzNeeded(0,0,50,0,0,0,0), Quartz.Bladeofpetrifaction);
		this.addQuartzRepice(new QuartzNeeded(0,0,50,0,0,0,0), Quartz.BladeOfSealMagic);
		
		this.addQuartzRepice(new QuartzNeeded(0,0,0,20,0,0,0), Quartz.Avoid1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,200,0,0,0), Quartz.Avoid2);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,800,0,0,0), Quartz.Avoid3);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,20,0,0,0), Quartz.MagicDefense1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,200,0,0,0), Quartz.MagicDefense2);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,800,0,0,0), Quartz.MagicDefense3);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,20,0,0,0), Quartz.Prejudice1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,200,0,0,0), Quartz.Prejudice2);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,800,0,0,0), Quartz.Prejudice3);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,100,0,0,0), Quartz.Attracting);
		
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,100,0,0), Quartz.BladeOfDie1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,150,0,0), Quartz.BladeOfDie2);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,20,0,0), Quartz.Action1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,200,0,0), Quartz.Action2);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,800,0,0), Quartz.Action3);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,200,0,0), Quartz.Drive1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,800,0,0), Quartz.Drive2);
		
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,0,50,0), Quartz.Area);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,0,100,0), Quartz.Speed1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,0,200,0), Quartz.Speed2);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,0,800,0), Quartz.Speed3);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,10,10,20), Quartz.EconEP1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,100,100,200), Quartz.EconEP2);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,800,800,1000), Quartz.EconEP3);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,20,30,100,0), Quartz.EagleEye);
		
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,0,100,0), Quartz.Over);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,10,10,30), Quartz.EP1);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,100,100,200), Quartz.EP2);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,500,500,800), Quartz.EP3);
		this.addQuartzRepice(new QuartzNeeded(0,0,20,0,10,10,30), Quartz.Hit1);
		this.addQuartzRepice(new QuartzNeeded(0,0,100,0,100,100,200), Quartz.Hit2);
		this.addQuartzRepice(new QuartzNeeded(0,0,400,0,500,500,800), Quartz.Hit3);
		this.addQuartzRepice(new QuartzNeeded(30,0,0,30,0,0,0), Quartz.SunShines);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,200,200,200), Quartz.Invisible);
		this.addQuartzRepice(new QuartzNeeded(0,0,0,0,500,500,800), Quartz.Intelligence);
		
	}
	public void addQuartzRepice(QuartzNeeded needed,int loopId){
		loopList.put(loopId,needed);
		
	}
	public int[] getneed(int loopId){
		int[] ele=new int[7];
		QuartzNeeded needed=loopList.get(loopId);
		ele[0]=needed.fire;
		ele[1]=needed.water;
		ele[2]=needed.earth;
		ele[3]=needed.wind;
		ele[4]=needed.time;
		ele[5]=needed.space;
		ele[6]=needed.unreal;
		return ele;
		
		
	}

}
